home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
puppy_red.swf
/
scripts
/
DefineSprite_350
/
frame_12
/
DoAction.as
Wrap
Text File
|
2008-03-11
|
950b
|
51 lines
function itemZero()
{
var i = 0;
while(i < 10)
{
_root["uitem" + i] = 0;
i++;
}
}
_root.shoot = 0;
stop();
_root.onEnterFrame = null;
var x = 1;
while(x <= 6)
{
var y = 1;
while(y <= 6)
{
_root["redflag" + x + y].removeMovieClip();
_root["blueflag" + x + y].removeMovieClip();
_root["trap" + x + y].removeMovieClip();
y++;
}
x++;
}
_root.tempscore = _root.score;
if(_root.item3 == 1)
{
_root.score *= 2;
}
else if(_root.item4 == 1)
{
_root.score *= 3;
}
else if(_root.item5 == 1)
{
_root.score *= 5;
}
if(_root.userlevel == _root.originallevel && _root.userlevel == 1 && _root.stg > 5)
{
_root.levelup = 1;
}
else if(_root.userlevel == _root.originallevel && _root.userlevel == 2 && _root.stg > 6)
{
_root.levelup = 1;
}
_root.sendScore();
stopAllSounds();
finalScoreView.scoreView.scoreView(_root.tempscore);
itemZero();